package xcmg.device.service.wechat.xgwjwcf;

import xcmg.device.service.wechat.xgwjwcf.function.IWeChatService;
import xcmg.device.service.wechat.xgwjwcf.function.WeChatService;

/**
 * 获取CRM提供的webservice连接，单独拉出来避免使用的时候混淆，在原Service中直接使用iWeChatService
 */
public class WechatInitService {

  private static IWeChatService iWeChatService;

  public static IWeChatService getWeChatService() {
    if (null != iWeChatService) {
      return iWeChatService;
    }
    WeChatService weChatService = new WeChatService();
    iWeChatService = weChatService.getBasicHttpBindingIWeChatService();
    return iWeChatService;
  }
}
